#pragma once

#include "zen_game_figure.h"
#include <vector>
#include <mutex>

namespace Zen
{
	namespace Game
	{
		/*!
	 @class Sprite
	 @abstract This is the sprite that render a rect texture.
	 */
		class Sprite : public FigureTexture
		{
		public:
			Sprite();
			virtual void OnTextureChange();
			virtual void Flush() override;
			virtual void OnReady(std::shared_ptr<RenderStack> stack, float interval) override;

		protected:
			using FigureTexture::SetPolygonBuffer;
			using FigureTexture::SetTextureCoordBuffer;
		};
	} // namespace Game
} // namespace Zen
